home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 November / november_2001.iso / Graphic Programs / Media Center Plus / mcp310ev.exe / Data.Cab / F5364_base.js < prev    next >
Encoding:
Text File  |  2001-07-13  |  959 b   |  42 lines

  1. function openWindow(url, width, height)
  2. {
  3.     if ((width + 30 > screen.width) || (height + 60 > screen.height))
  4.     {
  5.             width = width + 50;
  6.                 if (width > screen.width - 80)
  7.             width = screen.width - 80;
  8.             height = height + 50;
  9.         if (height > screen.height - 110)
  10.             height = screen.height - 110;
  11.         popupWin = window.open(url, "Image", "resizable,scrollbars,width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
  12.     }
  13.     else
  14.     {
  15.             width = width + 18;
  16.             height = height + 26;
  17.         popupWin = window.open(url, "Image", "resizable,width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
  18.     }
  19. }
  20.  
  21. function imageover(file)
  22. {
  23.     document.form1.img1.src = file;
  24. }
  25.  
  26.  
  27. function contents(file)
  28. {
  29.     self.location.replace(file);
  30. }
  31.  
  32.  
  33. function mHigh()
  34. {
  35.     event.srcElement.style.filter = "invert";
  36. }
  37.  
  38. function mBack()
  39. {
  40.     event.srcElement.style.filter = "";
  41. }
  42.